package hibernate.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Voting implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int votingID;
	private String votingName;
	private Date startDate;
	private Date endDate;
	private String detailInfo;
	private int numberOfSelections;
	private String votingSelectionOne;
	private String votingSelectionTwo;
	private String votingSelectionThree;
	private String votingSelectionFour;
	private String votingSelectionFive;
	
	
	/*
	private VotingSelections votingSelection;
	
	private List<VotingSelections> votingSelectionList;
	*/
//	private int telephoneBookID;
//	private TelephoneBook telephoneBook;
//	
//	private int telephoneTypeID;
//	private TelephoneTypes telephoneType;
	
	public Voting() {
		// TODO Auto-generated constructor stub
	}

	public int getVotingID() {
		return votingID;
	}

	public void setVotingID(int votingID) {
		this.votingID = votingID;
	}

	public String getVotingName() {
		return votingName;
	}

	public void setVotingName(String votingName) {
		this.votingName = votingName;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getDetailInfo() {
		return detailInfo;
	}

	public void setDetailInfo(String detailInfo) {
		this.detailInfo = detailInfo;
	}

	public int getNumberOfSelections() {
		return numberOfSelections;
	}

	public void setNumberOfSelections(int numberOfSelections) {
		this.numberOfSelections = numberOfSelections;
	}

	public String getVotingSelectionOne() {
		return votingSelectionOne;
	}

	public void setVotingSelectionOne(String votingSelectionOne) {
		this.votingSelectionOne = votingSelectionOne;
	}

	public String getVotingSelectionTwo() {
		return votingSelectionTwo;
	}

	public void setVotingSelectionTwo(String votingSelectionTwo) {
		this.votingSelectionTwo = votingSelectionTwo;
	}

	public String getVotingSelectionThree() {
		return votingSelectionThree;
	}

	public void setVotingSelectionThree(String votingSelectionThree) {
		this.votingSelectionThree = votingSelectionThree;
	}

	public String getVotingSelectionFour() {
		return votingSelectionFour;
	}

	public void setVotingSelectionFour(String votingSelectionFour) {
		this.votingSelectionFour = votingSelectionFour;
	}

	public String getVotingSelectionFive() {
		return votingSelectionFive;
	}

	public void setVotingSelectionFive(String votingSelectionFive) {
		this.votingSelectionFive = votingSelectionFive;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((detailInfo == null) ? 0 : detailInfo.hashCode());
		result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());
		result = prime * result + numberOfSelections;
		result = prime * result
				+ ((startDate == null) ? 0 : startDate.hashCode());
		result = prime * result + votingID;
		result = prime * result
				+ ((votingName == null) ? 0 : votingName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Voting other = (Voting) obj;
		if (detailInfo == null) {
			if (other.detailInfo != null)
				return false;
		} else if (!detailInfo.equals(other.detailInfo))
			return false;
		if (endDate == null) {
			if (other.endDate != null)
				return false;
		} else if (!endDate.equals(other.endDate))
			return false;
		if (numberOfSelections != other.numberOfSelections)
			return false;
		if (startDate == null) {
			if (other.startDate != null)
				return false;
		} else if (!startDate.equals(other.startDate))
			return false;
		if (votingID != other.votingID)
			return false;
		if (votingName == null) {
			if (other.votingName != null)
				return false;
		} else if (!votingName.equals(other.votingName))
			return false;
		return true;
	}
/*
	public VotingSelections getVotingSelection() {
		return votingSelection;
	}

	public void setVotingSelection(VotingSelections votingSelection) {
		this.votingSelection = votingSelection;
	}

	public void setVotingSelectionList(List<VotingSelections> votingSelectionList) {
		this.votingSelectionList = votingSelectionList;
	}

	public List<VotingSelections> getVotingSelectionList() {
		return votingSelectionList;
	}
*/
	
	
}
